package com.t;

public class TTest<T> {
	T t;
	
	public TTest(T t){
		this.t = t;
	}

	public T getT() {
		return t;
	}

	public void setT(T t) {
		this.t = t;
	}
	
//	public String toString(){
//		return this.toString();
//		
//	}
	
	
	public static void main(String[] args){
		TTest<String> tStr = new TTest<String>("T test String");
		
		TTest<Double> tDou = new TTest<Double>(new Double(12.5));
		
		TTest<Object> tObj = new TTest<Object>(new Object());
		
		System.out.println(tStr.getT());
		System.out.println(tDou.getT());
		System.out.println(tObj.getT());
	}
}
